<?php
/**
 * Created by PhpStorm.
 * User: zd
 * Date: 2018/11/29
 * Time: 10:32
 */

namespace app\api\validate;


class BehaviorValidate extends BaseValidate
{
    protected $rule=[
        'father'=>'require',
        'behavior'=>'require',
        'details'=>'checkDetails',
        'id'=>'isPositiveInt',
    ];
    protected $message=[
        'father'=>'名片ID不能为空',
        'behavior'=>'行为不能为空',
        'address'=>'行为id不能为空',
    ];

    public function checkDetails($data )
    {
        return true;
    }
}